package com.sanmina.route.dao;

import java.util.List;

import com.sanmina.route.entity.Location;
import com.sanmina.route.entity.Route;
import com.sanmina.route.entity.RouteStep;

public interface RouteDao {
	List<Location> listAllLocations();
	
	List<Location> searchLoactionByName(String workstation);
	
	Location searchLocationByKey(Integer locKey);
	
	boolean addRoute(Route route);
	
	boolean updateRouteStepsNumber(Integer routeKey ,Integer stepNum);
	
	List<Route> listAllRoute();
	
	List<Route> searchRouteByName(String name);
	
	
	//Route searchRouteByname();
	Route isRouteExist(String name);
	
	boolean isRouteStepExist(Integer routeKey);
	
	boolean deleteRouteStepByRouteKey(Integer routeKey);
	
	Route searchRouteByrouteKey(Integer routeKey);
	
	boolean addRouteStep(RouteStep step);
	
	List<RouteStep> listAllRouteStepsByRouteKey(Integer routekey);
}
